package com.isunf.generate.template;

import java.io.File;

/**
 * Created by Aixinde on 2016/4/6.
 */
public class Test {


    public static void main(String[] args) {
        String path ;
        String separator = File.separator;

        path = "D:/ybcms/code/ybcms/out/uploa/3.jpg";
        System.out.println(path);
        System.out.println(separator);
        //String fileType = path.substring(0,path.lastIndexOf("/"));
        String fileName=path.substring(0,path.lastIndexOf("/")+1);
        System.out.println(fileName);
        String[] str = path.split("/");
        int length = str.length;
        System.out.println(length + " **  "+ str[0] + " ** " );
    }
}
